package com.wangijun.yuan.web.model.vo;
import com.wangijun.yuan.core.domain.Article;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class MainArticleVO extends Article {

    @Schema(description = "分类")
    private CategoryVO category;

    @Schema(description = "话题")
    private TopicInfoVO topic;

    @Schema(description = "标签")
    private List<TagInfoVO> tagInfoList;

    @Schema(description = "作者信息")
    private ArticleUserVO userInfo;

    @Schema(description = "评论数量")
    private Integer commentNum;

    @Schema(description = "相对时间")
    private String relativeTime;

    @Schema(description = "是否点赞")
    private Boolean isStar;
}
